<section class="intro">
        <div class="intro-body">
            <div class="container">
                <div class="row">
                    <div class="col-md-8 col-md-offset-2">
                        <h1 class="brand-heading">Dokumen Manajemen</h1>
                        <p class="intro-text"><?php echo Content::model()->findByPk(1)->desc; ?></p>
                        <div class="page-scroll">
                            <a href="#about" class="btn btn-circle">
                                <i class="fa fa-angle-double-down animated"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section id="about" class="container content-section text-center">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2">
                <h2>About Dokumen Manajemen</h2>
                <p>Dokumen Manajemen is a premium quality, free Bootstrap 3 theme created by Start Bootstrap. It can be yours right now, all you need to do is download the template on the preview page. You can use this template for any purpose, personal or commercial.</p>
                <p>This striking, black and white theme features stock photographs by <a href="http://bioobie.net/">Bioobie</a> along with a custom Google Map skin courtesy of <a href="http://snazzymaps.com/">Snazzy Maps</a>.</p>
                <p>With this template, just the slightest splash of color can make a huge impact on the overall presentation and design.</p>
            </div>
        </div>
    </section>
    
	<section id="login" class="content-section text-center">
        <div class="login-section">
            <div class="container">
                <div class="col-lg-8 col-lg-offset-2">
					<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" rel="stylesheet">
						 <div class="login-page">

								<ul class="nav nav-tabs nav-justified">
								  <li class="active"><a href="#login" data-toggle="tab" class="br-lblue"><i class="fa fa-sign-in"></i> Sign In</a></li>
								</ul>

								<div class="tab-content">
								  <div class="tab-pane fade active in" id="login">
								  
									<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
										'id'=>'login-form',
										'action' => Yii::app()->createUrl('user/login'),
										'enableClientValidation'=>true,
										'type'=>'vertical',
										'clientOptions'=>array(
											'validateOnSubmit'=>true,
										),
									)); ?>
									<?php echo $form->errorSummary(array($login)); ?>
									  <div class="form-group">
										<label for="email">Username</label>
										<input type="text" id="UserLogin_username" class="form-control" name="UserLogin[username]" placeholder="Username">
										<?php echo $form->error($login,'username'); ?>
									  </div>
									  <div class="form-group">
										<label for="password">Password</label>
										<input type="password" class="form-control" id="UserLogin_password" name="UserLogin[password]" placeholder="Password">
										<?php echo $form->error($login,'username'); ?>
									  </div>
									  <button type="submit" class="btn btn-info btn-sm">Submit</button>
									  <button type="reset" class="btn btn-default btn-sm">Reset</button>
									  <?php echo CHtml::link(UserModule::t("Lost Password?"),Yii::app()->getModule('user')->recoveryUrl); ?>
									<?php $this->endWidget(); ?>
									
								  </div>
								  
								</div>
								
						 </div>	
                </div>
            </div>
        </div>
    </section>
	
	<section id="register" class="container content-section ">
        <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="single-head">
						<h3 class="pull-left"><i class="fa fa-desktop purple"></i> <?php echo UserModule::t("Registration"); ?></h3>
						<div class="clearfix"></div>
					</div>
					<?php if(Yii::app()->user->hasFlash('registration')): ?>
					<div class="success">
					<?php echo Yii::app()->user->getFlash('registration'); ?>
					</div>
					<?php else: ?>

					<div class="form">
					<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
						'id'=>'reg-form',
						// 'action' => Yii::app()->createUrl('user/registration'),
						'type'=>'horizontal',
						'enableClientValidation'=>true,
						'clientOptions'=>array(
							'validateOnSubmit'=>true,
						),
					)); ?>

						<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
						
						<?php echo $form->errorSummary(array($model,$profile)); ?>
						<?php echo $form->textFieldRow($profile,'firstname',array('class'=>'span4 form-control')); ?>
						<?php echo $form->textFieldRow($profile,'lastname' ,array('class'=>'span4 form-control')); ?>
						<?php echo $form->textFieldRow($model,'username' ,array('class'=>'span3 form-control')); ?>
						<?php echo $form->passwordFieldRow($model,'password' ,array('class'=>'span3 form-control')); ?>
						<?php echo $form->passwordFieldRow($model,'verifyPassword' ,array('class'=>'span3 form-control')); ?>
						<?php echo $form->textFieldRow($model,'email' ,array('class'=>'span3 form-control')); ?>
						<?php echo $form->dropDownListRow($profile,'org_typeId',CHtml::listData(OrgType::model()->findAll(), 'id', 'name'),array('class'=>'span3 form-control','empty'=>'--Select Organisation--')); ?>
						<?php echo $form->dropDownListRow($profile,'project_typeId',CHtml::listData(ProjectType::model()->findAll(), 'id', 'name'),array('class'=>'span3 form-control','empty'=>'--Select Legal Status--')); ?>
						<?php echo $form->textFieldRow($profile,'org_name' ,array('class'=>'span3 form-control')); ?>
						<?php echo $form->textAreaRow($profile,'org_desc' ,array('class'=>'span4 form-control')); ?>
						<?php echo $form->textFieldRow($profile,'web_url' ,array('class'=>'span6 form-control')); ?>
						<?php if(CCaptcha::checkRequirements()): ?>
							<?php echo $form->captchaRow($model,'verifyCode',array(
								'hint'=>'Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.',
								'class'=>'span3 form-control'
							)); ?>
						<?php endif; ?>
						
						<br/>
						<div class="form-actions">
							<?php $this->widget('bootstrap.widgets.TbButton', array(
								'buttonType'=>'submit',
								'type'=>'primary',
								'label'=>'Register',
							)); ?>
						</div>
						<br/>
					<?php $this->endWidget(); ?>
					</div><!-- form -->
					<?php endif; ?>
                </div>
        </div>
    </section>
